package com.scpii.universal.dto;

import com.scpii.universal.constant.GenericConstants;
import com.scpii.universal.hibernate.entity.BaseEntity;

/**
 * universalWeb
 * @author liuhj
 * 2012-8-8上午10:35:33
 */
public class ContentDto extends BaseEntity {
	private Integer intContentId;
	private String varContentName;
	private String varContentDescript;
	private String varContentImgUrl;
	private Integer intCateId;

	public Integer getIntContentId() {
		return intContentId;
	}

	public void setIntContentId(Integer intContentId) {
		this.intContentId = intContentId;
	}

	public String getVarContentName() {
		return varContentName;
	}

	public void setVarContentName(String varContentName) {
		this.varContentName = varContentName;
	}

	public String getVarContentDescript() {
		return varContentDescript;
	}

	public void setVarContentDescript(String varContentDescript) {
		this.varContentDescript = varContentDescript;
	}

	public Integer getIntCateId() {
		return intCateId;
	}

	public void setIntCateId(Integer intCateId) {
		this.intCateId = intCateId;
	}

	public String getVarContentImgUrl() {
		return varContentImgUrl;
	}

	public void setVarContentImgUrl(String varContentImgUrl) {
		this.varContentImgUrl = varContentImgUrl == null ? ""
				: (varContentImgUrl
						.startsWith(GenericConstants.IMG_RELATIVE_PREFIX) ? getServerUrl()
						+ varContentImgUrl
						: varContentImgUrl);
	}
}
